use-package: Add ':ignored-files' support to ':vc' keyword
authorTony Zorman <soliditsallgood@mailbox.org>
Sun, 15 Oct 2023 14:51:00 +0000 (16:51 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 18 May 2024 10:30:45 +0000 (13:30 +0300)
commita019d2bd56818046854345922ad805f3212cd116
treef05cc77795a7750f251102d634e9d6b0389ef179
parent426176c75e5337762b185818942c439a93e3d9ef
use-package: Add ':ignored-files' support to ':vc' keyword

* lisp/use-package/use-package-core.el (use-package-split-when):
New utility function to split a list whenever a specified
predicate returns t.
(use-package-vc-valid-keywords): A new defconst to gather all
allowed keywords.
(use-package-normalize--vc-arg): Properly normalize the
':ignored-files' keyword, in that the following are all valid
ways of entering files:
  :ignored-files "a"
  :ignored-files ("a")
  :ignored-files "a" "b" "c"
  :ignored-files ("a" "b" "c")
(use-package-normalize/:vc): Adjust normalization, now that we
do not necessarily receive a valid plist as an input.  (Bug#66567)

* test/lisp/use-package/use-package-tests.el
(use-package-test-normalize/:vc): Add tests for ':ignored-files'
keyword.
lisp/use-package/use-package-core.el
test/lisp/use-package/use-package-tests.el